<template>
    <div class="project-scribe-price">
        <div class="title-box">
            <span class="s-tit">{{ title }}</span>
        </div>
        <div class="cost-box">
            <div class="cost-row">
                <div class="cost-name">
                    <span>{{ title }}</span>
                </div>
                <el-input
                    v-model="pricec"
                    size="small"
                    class="cost-input"
                    @input="inputFun"
                ></el-input>
            </div>
        </div>
    </div>
</template>

<script>
import goodsCtrl from "../../js/project/GoodsCtrl.js";

export default {
    name: "projectScribePrice",
    data() {
        return {
            title: "划线价",
            pricec: "",
        };
    },
    methods: {
        initData() {
            this.pricec = goodsCtrl.getDatacom("pricec") || "";
        },
        inputFun() {
            // 准备缓存数据
            goodsCtrl.setDerData("pricec", this.pricec);
        },
    },
};
</script>

<style lang="scss" scoped>
.project-scribe-price {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 13px;
    .title-box {
        margin-bottom: 10px;
        font-weight: bold;
    }
    .cost-box {
        .cost-row {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            .cost-name {
                background: #eeeeee;
                width: 95px;
                padding: 5.5px 0;
                text-align: center;
            }
            ::v-deep.cost-input {
                width: 160px;
                .el-input__inner {
                    border-radius: 0;
                    border-color: #eeeeee;
                    font-size: 16px;
                    padding: 16px 10px;
                }
            }
        }
    }
}
</style>